<template>
    <div class="goods">
        <goods-list-item 
        v-for="(item,index) in goods"
        :product="item"
        :key="index"
        >
        </goods-list-item>
    </div>
</template>
<script>
import goodsListItem from './GoodsListItem.vue'
import {useRouter} from 'vue-router'
import { onMounted } from '@vue/runtime-core'
export default {
    props:{
        goods:{
            type:Array,
            default(){
                return []
            }
        }
    },
    components:{
        goodsListItem
    }
   
}
</script>
<style lang="less" scoped>
.goods{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 5px;
}
</style>